#ifndef _IM_SERVER_MESSAGE_DISTRIBUTE_TASK_
#define _IM_SERVER_MESSAGE_DISTRIBUTE_TASK_

#include "base/thread_manager.h"
#include "MessageService_types.h"

namespace imserver {

using apache::thrift::concurrency::Runnable;

class MessageDistributeTask : public Runnable {
public:
  MessageDistributeTask(const ImMessage& message) : message_(message) {}

  virtual void run();

private:
  ImMessage message_;
};

}

#endif // _IM_SERVER_MESSAGE_DISTRIBUTE_TASK_
